<template>
  <div class="container-page-audio">
    <itemOpen v-if="!isEdit" :is-history="isHistoryToOpen" @click="openClickHandler" />
    <div v-else-if="loading" class="item-loading">加载中...</div>
    <el-form v-else size="mini">
      <el-form-item>
        <itemUpload
          :aid="formData.id"
          :audio-list="resourcesList"
          @checkFile="checkFileHandler"
          @sort="sortHandler"
          @delete="deleteHandler"
        />
      </el-form-item>
      <el-form-item label="合辑标题">
        <el-input v-model="formData.title" placeholder="请填写合辑标题" />
      </el-form-item>
      <el-form-item label="合辑简介">
        <el-input v-model="formData.desc" type="textarea" rows="6" resize="none" :show-word-limit="true" placeholder="请填写合辑标题" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="submit">提交合辑</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script src="./index.js" />

<style lang="scss" src="./styles/index.scss"/>
